]> dgit.raspbian.org Git - emacs.git/log
emacs.git
2 years ago(edebug--called-interactively-skip): Fix bug#71934
Stefan Monnier [Thu, 4 Jul 2024 15:47:01 +0000 (11:47 -0400)]
(edebug--called-interactively-skip): Fix bug#71934

* lisp/emacs-lisp/edebug.el (edebug--called-interactively-skip):
Adjust to new interpreted functions.

2 years ago; * lisp/ibuffer.el (ibuffer-mode): Doc fix.
Eli Zaretskii [Thu, 4 Jul 2024 07:59:45 +0000 (10:59 +0300)]
; * lisp/ibuffer.el (ibuffer-mode): Doc fix.

2 years agoFix MS-Windows build with native-compilation
Eli Zaretskii [Wed, 3 Jul 2024 19:13:42 +0000 (22:13 +0300)]
Fix MS-Windows build with native-compilation

* src/w32.c (globals_of_w32): Move re-initialization of
Vlibrary_cache from here...
* src/emacs.c (main): ...to here, as it must be after load_pdump.
(Bug#71916)

2 years agoTag dbus-test05-register-signal-with-nils as unstable
Andrea Corallo [Wed, 3 Jul 2024 15:06:40 +0000 (17:06 +0200)]
Tag dbus-test05-register-signal-with-nils as unstable

* test/lisp/net/dbus-tests.el (dbus-test05-register-signal-with-nils):
Tag it as unstable.

2 years ago; * src/w32fns.c (funhook): Restore mistakenly lost line.
Eli Zaretskii [Wed, 3 Jul 2024 18:06:27 +0000 (21:06 +0300)]
; * src/w32fns.c (funhook): Restore mistakenly lost line.

2 years agoMerge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30
Eli Zaretskii [Wed, 3 Jul 2024 10:55:13 +0000 (13:55 +0300)]
Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30

2 years agoFix treesit test (bug#71907)
Yuan Fu [Wed, 3 Jul 2024 07:31:16 +0000 (00:31 -0700)]
Fix treesit test (bug#71907)

* test/src/treesit-tests.el (treesit-node-check): Re-parse buffer before
checking for node outdated-ness.

2 years agoFocus more on MS-Windows than MS-DOS in FAQ
Stefan Kangas [Wed, 3 Jul 2024 00:02:31 +0000 (02:02 +0200)]
Focus more on MS-Windows than MS-DOS in FAQ

* doc/misc/efaq.texi (Editing Windows files): Rename section from
"Editing MS-DOS files", and update the text to focus on Windows.
* doc/misc/efaq.texi (Colors on a TTY)
(Emacs does not display 8-bit characters): Mention MS-Windows before
MS-DOS.

2 years agoAutoload some string functions
Stefan Kangas [Mon, 1 Jul 2024 03:14:25 +0000 (05:14 +0200)]
Autoload some string functions

These functions are documented in both `(elisp) Creating Strings' and
'M-x shortdoc RET string RET', so users will expect them to be available
without having to require 'subr-x'.

* lisp/emacs-lisp/subr-x.el (string-fill, string-limit, string-pad)
(string-chop-newline): Autoload.

2 years agoMerge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30
Eli Zaretskii [Tue, 2 Jul 2024 14:41:48 +0000 (17:41 +0300)]
Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30

2 years ago* etc/NEWS: Fix typos.
Michael Albinus [Tue, 2 Jul 2024 12:28:52 +0000 (14:28 +0200)]
* etc/NEWS: Fix typos.

2 years ago; (grep-read-files): Fix completion table
Eshel Yaron [Tue, 2 Jul 2024 12:03:01 +0000 (14:03 +0200)]
; (grep-read-files): Fix completion table

* lisp/progmodes/grep.el (grep-read-files): Cease returning
some completion candidates unconditionally.  Use
'completion-file-name-table' over 'read-file-name-internal'
because the latter uses 'completion-table-with-quoting', and
that doesn't blend well with other tables in
'completion-table-merge'.

https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg01194.html

2 years agoMerge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30
Eli Zaretskii [Tue, 2 Jul 2024 11:08:58 +0000 (14:08 +0300)]
Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30

2 years agoRemove a reference to a non-existant variable from a doc-string
Alan Mackenzie [Mon, 1 Jul 2024 20:37:28 +0000 (20:37 +0000)]
Remove a reference to a non-existant variable from a doc-string

* lisp/progmodes/cc-langs.el (c-opt-extra-label-key): Remove
reference to c-nonlabel-decl-prefix-re from the doc string.

2 years ago; * src/fns.c (value_cmp): ASCIIfy.
Eli Zaretskii [Mon, 1 Jul 2024 18:58:17 +0000 (21:58 +0300)]
; * src/fns.c (value_cmp): ASCIIfy.

2 years ago; * etc/NEWS: Fix level of several entrries.
Eli Zaretskii [Mon, 1 Jul 2024 17:33:52 +0000 (20:33 +0300)]
; * etc/NEWS: Fix level of several entrries.

2 years ago; * etc/NEWS: Fix typo.
Eli Zaretskii [Mon, 1 Jul 2024 17:30:23 +0000 (20:30 +0300)]
; * etc/NEWS: Fix typo.

2 years ago; * src/search.c (Fmatch_beginning, Fmatch_end): Doc fix.
Eli Zaretskii [Mon, 1 Jul 2024 12:59:05 +0000 (15:59 +0300)]
; * src/search.c (Fmatch_beginning, Fmatch_end): Doc fix.

2 years ago; * etc/NEWS: Clarify.
Mattias Engdegård [Mon, 1 Jul 2024 08:43:12 +0000 (10:43 +0200)]
; * etc/NEWS: Clarify.

2 years ago; * src/treesit.c (Ftreesit_query_capture): Fix typo.
Yuan Fu [Mon, 1 Jul 2024 05:36:11 +0000 (22:36 -0700)]
; * src/treesit.c (Ftreesit_query_capture): Fix typo.

2 years ago* java/res/mipmap-v26/emacs_icon.xml: Define monospace icon.
Po Lu [Mon, 1 Jul 2024 01:31:34 +0000 (09:31 +0800)]
* java/res/mipmap-v26/emacs_icon.xml: Define monospace icon.

2 years agoImprove `sentence-end-double-space` docstring
Stefan Kangas [Mon, 1 Jul 2024 00:33:05 +0000 (02:33 +0200)]
Improve `sentence-end-double-space` docstring

* lisp/textmodes/paragraphs.el (sentence-end-double-space):
Improve and expand docstring.

2 years agoBackport file backup FAQ item to Emacs <28
Stefan Kangas [Sun, 30 Jun 2024 23:44:38 +0000 (01:44 +0200)]
Backport file backup FAQ item to Emacs <28

* doc/misc/efaq.texi (Not writing files to the current directory):
Backport recommendation to Emacs 27 or older.
Problem reported by David Hedlund <davidh@gnu.org>.

2 years agoMore updates of documentation for Emacs 30
Eli Zaretskii [Sun, 30 Jun 2024 19:25:31 +0000 (22:25 +0300)]
More updates of documentation for Emacs 30

* etc/NEWS: Improve wording and move/mark entries.

* doc/lispref/positions.texi (List Motion): Document
'forward-sentence-function'.
* doc/lispref/functions.texi (What Is a Function): Document
'primitive-function-p' and 'cl-functionp'.
* doc/emacs/misc.texi (Saving Emacs Sessions): Improve wording and
indexing.
* doc/lispref/tips.texi (Documentation Tips): Adapt to the new
value of 'emacs-lisp-docstring-fill-column'.
* doc/emacs/fixit.texi (Spelling): Document
'flyspell-check-changes'.

2 years ago; * etc/NEWS: Copy-edit.
Mattias Engdegård [Sun, 30 Jun 2024 15:11:55 +0000 (17:11 +0200)]
; * etc/NEWS: Copy-edit.

2 years agoRevert "; * etc/NEWS: Move items to "Incompatible Lisp Changes"."
Mattias Engdegård [Sun, 30 Jun 2024 15:06:30 +0000 (17:06 +0200)]
Revert "; * etc/NEWS: Move items to "Incompatible Lisp Changes"."

This reverts commit 000ef8876ae9e2098cf98e1b1c468c09be3acd43.
Most of the moved items weren't actually incompatible changes.

2 years agoImprove Android "adaptive icon"
Po Lu [Sun, 30 Jun 2024 15:11:19 +0000 (23:11 +0800)]
Improve Android "adaptive icon"

* java/res/drawable/emacs_background.xml:

* java/res/drawable/emacs_foreground.xml: Transform borders and
gradient colors to better align with the original.

2 years agoFix documentation for Emacs 30
Eli Zaretskii [Sun, 30 Jun 2024 14:42:38 +0000 (17:42 +0300)]
Fix documentation for Emacs 30

* etc/NEWS: Mark entries and improve wording.

* doc/emacs/dired.texi (Operating on Files): Document
'dired-do-open'.  Fix indexing.
* doc/emacs/files.texi (Diff Mode): Document 'diff-apply-buffer'.
Fix indexing.
* doc/emacs/maintaining.texi (Project File Commands)
(Project Buffer Commands): Document 'project-any-command'.
* doc/emacs/building.texi (Other GDB Buffers): Document the user
option 'gdb-display-io-buffer'.
(Grep Searching): Document 'grep-use-headings'.
* doc/emacs/text.texi (Outline Visibility): Document Outline
commands that hide/show by heading regexp.
* doc/emacs/killing.texi (Kill Options): Document
'kill-ring-deindent-mode'.
* doc/emacs/basic.texi (Continuation Lines): Improve wording.

2 years ago; Update NEWS and corresponding manuals
Eli Zaretskii [Sun, 30 Jun 2024 12:06:06 +0000 (15:06 +0300)]
; Update NEWS and corresponding manuals

* etc/NEWS: Improve wording and mark entries as approriate.

* doc/emacs/buffers.texi (Kill Buffer): Document new commands.
* doc/emacs/mini.texi (Completion Options, Completion Commands):
Document new completion options and behaviors.

2 years agoAdd D-Bus test
Robert Church [Sun, 30 Jun 2024 10:16:20 +0000 (12:16 +0200)]
Add D-Bus test

* test/lisp/net/dbus-tests.el (dbus-test05-register-signal-with-nils):
New test.  (Bug#69926)

2 years ago; Repair corruption in etc/DEBUG
Po Lu [Sun, 30 Jun 2024 09:37:46 +0000 (17:37 +0800)]
; Repair corruption in etc/DEBUG

* etc/DEBUG: Repair corruption reported by Eli Zaretskii
<eliz@gnu.org>.

2 years ago; * etc/DEBUG: Advice for debugging Emacs on OpenBSD (bug#71712).
Eli Zaretskii [Sun, 30 Jun 2024 09:18:22 +0000 (12:18 +0300)]
; * etc/DEBUG: Advice for debugging Emacs on OpenBSD (bug#71712).

2 years agoMerge remote-tracking branch 'savannah/scratch/windows-98' into emacs-30
Po Lu [Sun, 30 Jun 2024 02:08:22 +0000 (10:08 +0800)]
Merge remote-tracking branch 'savannah/scratch/windows-98' into emacs-30

* configure.ac (W32_LIBS): Don't link with -lusp10 on non-Cygwin
systems.

* src/emacs.c (main): Call globals_of_w32 before the startup
directory is initialized.

* src/w32.c (maybe_load_unicows_dll): Call
load_unicows_dll_for_w32fns.

* src/w32.h: Update prototypes.

* src/w32fns.c (Fx_create_frame, w32_create_tip_frame): Do not
register the Uniscribe font driver when unavailable.
(pfnSHFileOperationW): New function pointer.
(Fsystem_move_file_to_trash): Load UNICOWS.DLL if not yet
loaded.  Call SHFileOperationW through said function pointer.
(pfnShellExecuteExW): New function pointer.
(Fw32_shell_execute) [!CYGWIN]: Load UNICOWS.DLL if not yet
loaded.  Call ShellExecuteExW through said function pointer.
(pfnShell_NotifyIconW): New function pointer.
(add_tray_notification, delete_tray_notification): Call
Shell_NotifyIconW through said function pointer.
(Fw32_notification_notify): Load UNICOWS.DLL.
(Fw32_notification_close): Return if Shell_NotifyIconW is
unavailable, as when UNICOWS.DLL has yet to be loaded.
(load_unicows_dll_for_w32fns): New function.

* src/w32notify.c (pfnReadDirectoryChangesW): New function
pointer.
(watch_completion, remove_watch, Fw32notify_add_watch)
(Fw32notify_rm_watch, Fw32notify_valid_p): Call
ReadDirectoryChangesW through said function pointer, and assert
its presence.
(globals_of_w32notify): Load ReadDirectoryChangesW from
KERNEL32.DLL.

* src/w32uniscribe.c (pfnScriptItemize, pfnScriptShape)
(pfnScriptPlace, pfnScriptGetGlyphABCWidth, pfnScriptFreeCache)
(pfnScriptGetCMap): New function pointers.
(uniscribe_close, uniscribe_shape, uniscribe_encode_char)
(uniscribe_check_otf_1): Call Uniscribe functions through the
same.
(syms_of_w32uniscribe_for_pdumper): Load Uniscribe library and
required functions from the same, and if unavailable, return
while leaving uniscribe_available intact.  On Cygwin, simply
assign USP10.DLL functions to the said new function pointers.

2 years agoInaccuracy in efaq.texi
Po Lu [Sun, 30 Jun 2024 02:04:43 +0000 (10:04 +0800)]
Inaccuracy in efaq.texi

; * doc/misc/efaq.texi (New in Emacs 30): Mention GNUStep and
Mac OS separately.

2 years ago; Fix typos in DOS Makefile scripts
Po Lu [Sun, 30 Jun 2024 01:58:09 +0000 (09:58 +0800)]
; Fix typos in DOS Makefile scripts

* msdos/sedlibmk.inp (NEXT_AS_FIRST_DIRECTIVE_ENDIAN_H)
(NEXT_ENDIAN_H): Use a different command deliminter character
from `/'.

2 years ago; * etc/NEWS: Explain Nextstep.
Stefan Kangas [Sun, 30 Jun 2024 01:54:17 +0000 (03:54 +0200)]
; * etc/NEWS: Explain Nextstep.

2 years agoFix treesit crash (bug#71681)
Yuan Fu [Sat, 29 Jun 2024 07:16:36 +0000 (00:16 -0700)]
Fix treesit crash (bug#71681)

To reproduce the problem:

0. emacs -Q
1. eval: (add-to-list 'major-mode-remap-alist '(c-mode . c-ts-mode))
2. C-x v L
3. in the *vc-change-log* buffer move point to the commit 20af58d3a13
4. type D
5. crash caused by diff-font-lock-syntax fontification that uses treesit

Emacs: 6f2036243f2 (2024-06-23, latest master)
Tree-sitter: 3da7deed (2024-06-08, version 0.22.6)

The immediate cause of the crash is that tree-sitter accessed a node's
tree, but the tree is already deleted.  Commenting out the
ts_tree_delete line in treesit_ensure_parsed can "fix" the crash.

What happended, I think, is this:

1. Buffer modified, parser->need_reparse set to true,
parser->timestamp incremented.
2. A node is created from the parser, this node has the old tree but
the new timestamp (bad!).
3. Parser re-parses (treesit_ensure_parsed), new tree created, old
tree deleted.
4. Ftreesit_query_capture accessed the old node, and the old tree,
crash.

We shouldn't bump the parser timestamp when we set
parser->need_reparse to true; instead, we should bump the timestamp
when we actually reparsed and created a new tree.

* src/treesit.c (treesit_record_change): Don't bump parser timestamp.
(treesit_sync_visible_region): Don't bump parser timestamp.
(Ftreesit_parser_set_included_ranges): Don't bump parser timestamp.
(treesit_ensure_parsed): Bump parser timestamp.
(Ftreesit_query_capture): Add node check.

2 years ago; Fix SHR test on MS-Windows
Jim Porter [Fri, 28 Jun 2024 17:40:05 +0000 (10:40 -0700)]
; Fix SHR test on MS-Windows

* test/lisp/net/shr-tests.el (shr-test/zoom-image): Ensure the image URL
is properly formatted: it should always have 3 slashes after "file:".

2 years agoDelete redundant mention of `with-eval-after-load'
Stefan Kangas [Sat, 29 Jun 2024 19:15:46 +0000 (21:15 +0200)]
Delete redundant mention of `with-eval-after-load'

* lisp/progmodes/dcl-mode.el (dcl-mode): Delete redundant mention of
`with-eval-after-load'.

2 years ago* doc/misc/efaq.texi (New in Emacs 30): Fix typos.
Michael Albinus [Sat, 29 Jun 2024 16:42:13 +0000 (18:42 +0200)]
* doc/misc/efaq.texi (New in Emacs 30): Fix typos.

2 years ago; Fix typos in symbols
Stefan Kangas [Sat, 29 Jun 2024 15:29:38 +0000 (17:29 +0200)]
; Fix typos in symbols

2 years agoDocument security fixes in FAQ
Stefan Kangas [Sat, 29 Jun 2024 14:48:49 +0000 (16:48 +0200)]
Document security fixes in FAQ

* doc/misc/efaq.texi (New in Emacs 29): Recommend using Emacs 29.4.
* doc/misc/efaq.texi (Security risks with Emacs): New item with a
recommendation to upgrade Emacs for improved security.

2 years agoAdd "New in Emacs 30" to FAQ
Stefan Kangas [Sat, 29 Jun 2024 14:41:18 +0000 (16:41 +0200)]
Add "New in Emacs 30" to FAQ

* doc/misc/efaq.texi (New in Emacs 30): New section.

2 years ago; * etc/NEWS: Move "Minibuffer and Completions"
Stefan Kangas [Sat, 29 Jun 2024 14:37:07 +0000 (16:37 +0200)]
; * etc/NEWS: Move "Minibuffer and Completions"

As a generally applicable feature, it belongs under "Changes" rather
than under "Changes in Specialized Modes and Packages".

2 years ago; * etc/NEWS: Move item to "Lisp Changes".
Stefan Kangas [Sat, 29 Jun 2024 14:36:17 +0000 (16:36 +0200)]
; * etc/NEWS: Move item to "Lisp Changes".

2 years ago; * etc/NEWS: Move keyboard macro items closer together.
Stefan Kangas [Sat, 29 Jun 2024 14:34:28 +0000 (16:34 +0200)]
; * etc/NEWS: Move keyboard macro items closer together.

2 years ago; * etc/NEWS: More copy-edits.
Stefan Kangas [Sat, 29 Jun 2024 14:34:05 +0000 (16:34 +0200)]
; * etc/NEWS: More copy-edits.

2 years ago; * etc/NEWS: Move items to "Incompatible Lisp Changes".
Stefan Kangas [Sat, 29 Jun 2024 13:58:33 +0000 (15:58 +0200)]
; * etc/NEWS: Move items to "Incompatible Lisp Changes".

2 years ago; * etc/NEWS: Rearrange "Incompatible Lisp Changes".
Stefan Kangas [Sat, 29 Jun 2024 13:50:57 +0000 (15:50 +0200)]
; * etc/NEWS: Rearrange "Incompatible Lisp Changes".

2 years ago; * lisp/epg.el (epg--start): Add commentary about encoding.
Eli Zaretskii [Sat, 29 Jun 2024 12:53:11 +0000 (15:53 +0300)]
; * lisp/epg.el (epg--start): Add commentary about encoding.

2 years agoFix non-ASCII filename operatiion on EasyPG (bug#71500)
Kazuhiro Ito [Sat, 29 Jun 2024 11:56:02 +0000 (20:56 +0900)]
Fix non-ASCII filename operatiion on EasyPG (bug#71500)

* lisp/epg.el (epg--start): Don't encode command-line arguments for
gpg2 program in raw-text.

2 years agoSilence warning with global minor mode :predicate
Stefan Kangas [Sat, 29 Jun 2024 12:38:57 +0000 (14:38 +0200)]
Silence warning with global minor mode :predicate

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Silence byte-compiler warning when :predicate is used.

2 years ago; * etc/NEWS: Move an item to "Startup Changes"
Stefan Kangas [Sat, 29 Jun 2024 12:15:34 +0000 (14:15 +0200)]
; * etc/NEWS: Move an item to "Startup Changes"

2 years ago; * etc/NEWS: Move some Lisp items to better place.
Stefan Kangas [Sat, 29 Jun 2024 12:11:20 +0000 (14:11 +0200)]
; * etc/NEWS: Move some Lisp items to better place.

2 years ago; * etc/NEWS: Rearrange "Editing Changes in Emacs 30.1"
Stefan Kangas [Sat, 29 Jun 2024 12:05:45 +0000 (14:05 +0200)]
; * etc/NEWS: Rearrange "Editing Changes in Emacs 30.1"

2 years ago; * etc/NEWS: Make touch screen support more prominent.
Stefan Kangas [Sat, 29 Jun 2024 12:01:48 +0000 (14:01 +0200)]
; * etc/NEWS: Make touch screen support more prominent.

2 years ago; * etc/NEWS: Rearrange "Changes in Emacs 30.1".
Stefan Kangas [Sat, 29 Jun 2024 11:53:49 +0000 (13:53 +0200)]
; * etc/NEWS: Rearrange "Changes in Emacs 30.1".

2 years ago; * lisp/thingatpt.el (sexp-at-point): Doc fix (bug#71777).
Eli Zaretskii [Sat, 29 Jun 2024 12:22:38 +0000 (15:22 +0300)]
; * lisp/thingatpt.el (sexp-at-point): Doc fix (bug#71777).

2 years agoFix: make 'xwidget-webkit-scroll-backward' scroll backwards
George Huebner [Tue, 18 Jun 2024 22:14:41 +0000 (17:14 -0500)]
Fix: make 'xwidget-webkit-scroll-backward' scroll backwards

* lisp/xwidget.el (xwidget-webkit-scroll-backward): Move
hyphen out of %-formatter, changing semantics from a padding
specifier to a negative sign.  (Bug#71792)

Copyright-paperwork-exempt: yes

2 years agoMerge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30
Eli Zaretskii [Sat, 29 Jun 2024 12:08:23 +0000 (15:08 +0300)]
Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30

2 years agoAdd jsdoc support to php-ts-mode in <script> element
Vincenzo Pupillo [Tue, 25 Jun 2024 09:29:54 +0000 (11:29 +0200)]
Add jsdoc support to php-ts-mode in <script> element

In the <script> element, enable jsdoc embedding in JavaScript.
* lisp/progmodes/php-ts-mode.el
(php-ts-mode--language-source-alist): Add jsdoc to parser recipe.
(php-ts-mode): Add jsdoc parser check and a new rule for
'treesit-range-settings'.  Update the commentary section.
(Bug#71771)

2 years agoUpdate to Transient v0.7.2-4-gf75bc48d
Jonas Bernoulli [Sat, 29 Jun 2024 12:06:12 +0000 (14:06 +0200)]
Update to Transient v0.7.2-4-gf75bc48d

2 years agoFix typo incurring leaks of face structures
Po Lu [Sat, 29 Jun 2024 12:02:45 +0000 (20:02 +0800)]
Fix typo incurring leaks of face structures

* src/xfaces.c (free_realized_face): Always free realized face
structures, and avoid sending X requests when the display is not
available, not when it is.

2 years ago; Fix use of @footnote in cc-mode.texi
Eli Zaretskii [Sat, 29 Jun 2024 08:55:08 +0000 (11:55 +0300)]
; Fix use of @footnote in cc-mode.texi

* doc/misc/cc-mode.texi (Comment Commands, Minor Modes)
(Hungry WS Deletion): Move @footnote's out of @item's, to avoid
warnings from makeinfo.

2 years agoMerge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30
Michael Albinus [Sat, 29 Jun 2024 08:14:01 +0000 (10:14 +0200)]
Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30

2 years agoSync with Tramp 2.7.1
Michael Albinus [Sat, 29 Jun 2024 08:13:32 +0000 (10:13 +0200)]
Sync with Tramp 2.7.1

* doc/misc/trampver.texi:
* lisp/net/trampver.el (tramp-version): Adapt Tramp versions.
(customize-package-emacs-version-alist): Add Tramp version
integrated in Emacs 30.1.

* lisp/net/tramp-compat.el:
* lisp/net/tramp-message.el (tramp-warning): Use `lwarn'.

* test/lisp/net/tramp-tests.el
(tramp--test-deftest-without-file-attributes): New defmacro.
(tramp-test18-file-attributes-without-file-attributes)
(tramp-test19-directory-files-and-attributes-without-file-attributes)
(tramp-test18-file-attributes-without-file-attributes)
(tramp-test42-utf8-without-file-attributes): New tests.

2 years ago; * etc/NEWS: Move the mwheel entry to a better place.
Eli Zaretskii [Sat, 29 Jun 2024 08:12:07 +0000 (11:12 +0300)]
; * etc/NEWS: Move the mwheel entry to a better place.

2 years ago; Sort tree-sitter modes in NEWS
Stefan Kangas [Sat, 29 Jun 2024 03:22:09 +0000 (05:22 +0200)]
; Sort tree-sitter modes in NEWS

* etc/NEWS: Sort tree-sitter modes alphabetically.

2 years ago; * etc/NEWS: Rearrange "New Modes and Packages in Emacs 30.1".
Stefan Kangas [Sat, 29 Jun 2024 02:50:14 +0000 (04:50 +0200)]
; * etc/NEWS: Rearrange "New Modes and Packages in Emacs 30.1".

This places new modes and packages in rough order of
importance (relevance to users) with most important first.
Feel free to amend.

2 years ago; * etc/NEWS: Move many items.
Stefan Kangas [Sat, 29 Jun 2024 02:09:51 +0000 (04:09 +0200)]
; * etc/NEWS: Move many items.

This moves items to more logical places in the hierarchy.
We might want to give this another pass or three.

2 years ago; * etc/NEWS: Copy-edits.
Stefan Kangas [Fri, 28 Jun 2024 23:04:03 +0000 (01:04 +0200)]
; * etc/NEWS: Copy-edits.

2 years agoExpand docstring of which-key-mode
Stefan Kangas [Fri, 28 Jun 2024 22:56:11 +0000 (00:56 +0200)]
Expand docstring of which-key-mode

* lisp/which-key.el (which-key-mode): Expand docstring.

2 years agoImprove documentation of 'remove-overlays' in ELisp manual
Eli Zaretskii [Fri, 28 Jun 2024 11:52:05 +0000 (14:52 +0300)]
Improve documentation of 'remove-overlays' in ELisp manual

* doc/lispref/display.texi (Managing Overlays): Update
documentation of 'remove-overlays'.  (Bug#57534)  (Bug#13648)

2 years agoFix link to major mode variable in docstring
Stefan Kangas [Fri, 28 Jun 2024 10:16:57 +0000 (12:16 +0200)]
Fix link to major mode variable in docstring

* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): Fix link to
major mode variable in docstring.  (Bug#71815)

2 years agoMake `shell-mode' more robust
Michael Albinus [Fri, 28 Jun 2024 09:28:33 +0000 (11:28 +0200)]
Make `shell-mode' more robust

* lisp/shell.el (shell-mode): Ensure that
`comint-input-ring-file-name' is non-nil when calling `file-truename'.

2 years agoCorrect ommissions in rmc.el
Po Lu [Fri, 28 Jun 2024 06:43:58 +0000 (14:43 +0800)]
Correct ommissions in rmc.el

* lisp/emacs-lisp/rmc.el (touch-screen-scroll)
(touch-screen-pinch): Declare functions.
(read-multiple-choice--short-answers): Call the same functions
directly and prevent the on-screen keyboard from being
deactivated immedately before it is reopened.

2 years ago* lisp/hi-lock.el: More fixes related to revert-buffer.
Juri Linkov [Fri, 28 Jun 2024 06:42:43 +0000 (09:42 +0300)]
* lisp/hi-lock.el: More fixes related to revert-buffer.

(hi-lock-set-pattern): Use the same propertized string
for 'overlay-put' property to allow 'remove-overlays'
to remove it while using 'eq' on the property value.
https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg01001.html

2 years agoUpdate to Org 9.7.5-9-ga091ca
Kyle Meyer [Fri, 28 Jun 2024 03:55:35 +0000 (23:55 -0400)]
Update to Org 9.7.5-9-ga091ca

2 years ago; Fix typo in lua-ts-mode.el
john muhl [Wed, 12 Jun 2024 15:41:03 +0000 (10:41 -0500)]
; Fix typo in lua-ts-mode.el

* lisp/progmodes/lua-ts-mode.el: Fix typo.  (Bug#71736)

2 years ago; Add 'eglot-ensure' option to 'lua-ts-mode-hook'
john muhl [Wed, 15 Nov 2023 18:45:18 +0000 (12:45 -0600)]
; Add 'eglot-ensure' option to 'lua-ts-mode-hook'

* lisp/progmodes/lua-ts-mode.el (lua-ts-mode-hook): Add an option to
enable Eglot from the lua-ts-mode-hook.  (Bug#71736)

2 years ago; * etc/NEWS: Copy edit.
Stefan Kangas [Thu, 27 Jun 2024 22:32:56 +0000 (00:32 +0200)]
; * etc/NEWS: Copy edit.

2 years agoMerge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30
Eli Zaretskii [Thu, 27 Jun 2024 18:55:54 +0000 (21:55 +0300)]
Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30

2 years agoWrite Antinews for Emacs 30 ELisp Reference
Eli Zaretskii [Thu, 27 Jun 2024 18:54:52 +0000 (21:54 +0300)]
Write Antinews for Emacs 30 ELisp Reference

* doc/lispref/anti.texi (Antinews):
* doc/lispref/elisp.texi (Top): Rewrite "Antinews" for Emacs 30.

2 years ago(eval-last-sexp): Fix bug#71774
Stefan Monnier [Thu, 27 Jun 2024 18:39:27 +0000 (14:39 -0400)]
(eval-last-sexp): Fix bug#71774

* lisp/progmodes/elisp-mode.el (eval-last-sexp): Set `values` only
when `eval-expression-debug-on-error` is nil.

2 years ago* lisp/hi-lock.el: More fixes for revert-buffer (bug#57534)
Juri Linkov [Thu, 27 Jun 2024 18:08:28 +0000 (21:08 +0300)]
* lisp/hi-lock.el: More fixes for revert-buffer (bug#57534)

(hi-lock-set-pattern): Put the text property 'regexp' on the lighter string.
(hi-lock-revert-buffer-rehighlight): Get the real regexp from the
text property 'regexp'.  This fixes the case when the original
regexp gets lost after e.g. 'M-s . M-s h r'.

2 years ago* lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): Improve (bug#57534).
Juri Linkov [Thu, 27 Jun 2024 17:05:58 +0000 (20:05 +0300)]
* lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): Improve (bug#57534).

Instead of detecting invalidated overlays, use the same condition
as in 'hi-lock-set-pattern', and always re-highlight overlays,
because even when overlays stays on their original positions,
there is a need to highlight more matches possibly added after revert.

2 years ago* lisp/tab-bar.el (tab-bar-select-restore-windows): Improve the docstring.
Juri Linkov [Thu, 27 Jun 2024 16:57:18 +0000 (19:57 +0300)]
* lisp/tab-bar.el (tab-bar-select-restore-windows): Improve the docstring.

Suggested by Kévin Le Gouguec <kevin.legouguec@gmail.com> in bug#71779.

2 years agoWrite Antinews for Emacs 30 user manual
Eli Zaretskii [Thu, 27 Jun 2024 16:36:39 +0000 (19:36 +0300)]
Write Antinews for Emacs 30 user manual

* doc/emacs/anti.texi (Antinews):
* doc/emacs/emacs.texi (Top): Rewrite "Antinews" for Emacs 30.

2 years ago; * lisp/erc/erc-backend.el (erc-server-reconnect-timeout): Doc (bug#71756).
F. Jason Park [Mon, 24 Jun 2024 23:04:37 +0000 (16:04 -0700)]
; * lisp/erc/erc-backend.el (erc-server-reconnect-timeout): Doc (bug#71756).

2 years agoChange ERC version for Emacs 30 to 5.6.0.30.1
F. Jason Park [Mon, 24 Jun 2024 22:55:56 +0000 (15:55 -0700)]
Change ERC version for Emacs 30 to 5.6.0.30.1

* doc/misc/erc.texi: Change ERCVER to 5.6.0.30.1.
* lisp/erc/erc.el: Change Version package header to 5.6.0.30.1.  Don't
bother updating the `customize-package-emacs-version-alist' entry
because no user options are yet affected.
(erc-version): Change version to 5.6.0.30.1.
Do not merge to master.

2 years ago* src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper): Typos.
Po Lu [Thu, 27 Jun 2024 13:42:19 +0000 (21:42 +0800)]
* src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper): Typos.

2 years agoFix two tests for --without-all build
Andrea Corallo [Thu, 27 Jun 2024 13:32:03 +0000 (15:32 +0200)]
Fix two tests for --without-all build

* test/src/image-tests.el
(image-tests-image-mask-p/error-on-nongraphical-display)
(image-tests-image-metadata/error-on-nongraphical-display): xpm images
are not supported in all configurations so use xbm for non graphical
display tests.

2 years ago; * etc/PROBLEMS (PGTK): Remove redundant 2nd PGTK section.
Eli Zaretskii [Thu, 27 Jun 2024 10:34:21 +0000 (13:34 +0300)]
; * etc/PROBLEMS (PGTK): Remove redundant 2nd PGTK section.

2 years agoFix handling of non-nil 'dired-movement-style'
Eli Zaretskii [Thu, 27 Jun 2024 09:42:43 +0000 (12:42 +0300)]
Fix handling of non-nil 'dired-movement-style'

* lisp/dired.el (dired--move-to-next-line): Treat any non-nil
value of 'dired-movement-style' except 'cycle' as 'bounded'.
(dired-movement-style): Mention this in the doc string.
(Bug#71770)

2 years ago; * lisp/gnus/message.el (message-idna-to-ascii-rhs): Doc fix (bug#71757).
Eli Zaretskii [Thu, 27 Jun 2024 09:33:47 +0000 (12:33 +0300)]
; * lisp/gnus/message.el (message-idna-to-ascii-rhs): Doc fix (bug#71757).

2 years ago; * etc/NEWS: Fix last change (bug#71720).
Eli Zaretskii [Thu, 27 Jun 2024 08:55:29 +0000 (11:55 +0300)]
; * etc/NEWS: Fix last change (bug#71720).

2 years agoDo not prematurely truncate python eldoc string
James Thomas [Sat, 22 Jun 2024 12:27:00 +0000 (17:57 +0530)]
Do not prematurely truncate python eldoc string

'eldoc-echo-area-use-multiline-p' is there for that.
* lisp/progmodes/python.el (python-eldoc-setup-code):
Make the change.  (Bug#71720)

* etc/NEWS: Announce the change in behavior.

2 years ago; Fix simple-tests as fallout of last change
Eli Zaretskii [Thu, 27 Jun 2024 08:37:15 +0000 (11:37 +0300)]
; Fix simple-tests as fallout of last change

* test/lisp/simple-tests.el
(simple-execute-extended-command--shorter): Fix test broken by new
kill-whole-line tests.  (Bug#65734)

2 years agoAdd tests for `kill-whole-line' (bug#65734)
Sebastian Miele [Wed, 19 Jun 2024 13:58:24 +0000 (15:58 +0200)]
Add tests for `kill-whole-line' (bug#65734)

* test/lisp/simple-tests.el (simple-test-point-tag):
(simple-test-mark-tag):
(simple-test--set-buffer-text-point-mark):
(simple-test--get-buffer-text-point-mark): Add helper functions used by
the tests.
(kill-whole-line-invisible):
(kill-whole-line-read-only):
(kill-whole-line-after-other-kill):
(kill-whole-line-buffer-boundaries):
(kill-whole-line-line-boundaries): Add tests for `kill-whole-line'.

2 years agokill-whole-line: Honor visibility; fix kill-ring when read-only (bug#65734)
Sebastian Miele [Wed, 19 Jun 2024 13:48:59 +0000 (15:48 +0200)]
kill-whole-line: Honor visibility; fix kill-ring when read-only (bug#65734)

* lisp/simple.el (kill-whole-line): Use visibility state before
performing any edits as reference instead of expecting that visibility
cannot change.  First of the two calls to `kill-region' may trigger
`after-change-functions' that might alter the visibility state.
Make sure that we populate the `kill-ring' with the contents of the
whole line when buffer is in `read-only-mode'.